<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>选择器</title>
		<style>
			li{
				list-style: none;
			}
			*{
				margin: 0;
				padding: 0;
			}
			.box-one{
				width: 500px;
				height: 500px;
				border: solid red 3px;
				margin: 10px auto;
			}
			.box-two{
				width: 200px;
				height: 20px;
				line-height: 20px;
				padding-left: 10px;
				background-color: pink;
				color: white;
				font-size: 14px;
			}
			.box-three{
				width: 200px;
				height: 300px;
				background-color: deeppink;
				padding-left: 10px;
			}
			/*控制同一个父元素的相邻元素的属性*/
			.box-two:hover + .box-four{
				background-color: springgreen;
			}
			
			
			.box1{
				/*position: relative;*/
				width: 500px;
				height: 150px;
				background-color: pink;
			}
			ul{
				/*position: absolute;*/
				float: left;
				width: 100px;
				height: 120px;
				background: red;
				margin-top: 15px;
			}
			ul li{
				background: darkred;
				height: 40px;
			}
			.box3{
				/*position: absolute;
				top: 40px;
				left: 110px;*/
				float: right;
				width: 400px;
				height: 100%;
				background: green;
			}
			ul:hover + .box3{
				width: 50px;
			}
		</style>
	</head>
	<body>
		<!--<div class="box-one">
			<div class="box-two">鼠标移动弹出盒子three</div>
			<div class="box-three"></div>
		</div>-->
		<div class="box1">
			<ul>
				<li>11111</li>
				<li>22222222</li>
				<li>3333333333</li>
			</ul>
			<div class="box3"></div>
		</div>
	</body>
</html>
